 <div class="alert alert-new spec_item" style='width:100%;' id='spec_{$spec['id']}' >
            <input name="spec_id[]" type="hidden" class="span3 spec_id" value="{$spec['id']}"/>
                                            
            <table  class="tb">
                <tr>
                    <td style='width:80px;'>规格名:</td>
                    <td>
                           <input name="spec_title[{$spec['id']}]" type="text" class="span3  spec_title" value="{$spec['title']}"/>
                           <span class='help-inline'>
                               (比如: 颜色)
                           </span>
                </tr>
                <tr>
                    <td>规格项:</td>
                    <td id='spec_item_{$spec['id']}' class='spec_item_items'> 
                         {loop $spec['items'] $specitem}
                            {php include $this->template('spec_item')}
                         {/loop}
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><a href="javascript:;" id="add-specitem-{$spec['id']}" specid='{$spec['id']}' class='btn add-specitem' onclick="addSpecItem('{$spec['id']}')"><i class="icon-plus"></i> 添加规格项</a>
                        <a href="javascript:void(0);" class='btn btn-danger' onclick="removeSpec('{$spec['id']}')"><i class="icon-plus"></i> 删除规格</a>
                    </td>
                </tr>
              
                
            </table>
        </div>        